<template>
  <div>
    <button @click="isShow = !isShow">显示/隐藏</button>
    <transition-group
        name="animate__animated animate__bounce"
        appear
        enter-active-class="animate__fadeInBottomLeft"
        leave-active-class="animate__fadeOutBottomLeft">
      <h1 key="1" v-show="!isShow">Hello World！</h1>
      <h1 key="2" v-show="isShow">Hello World！</h1>
    </transition-group>
  </div>
</template>

<script>
import 'animate.css';

export default {
  name: "Test3",
  data() {
    return {
      isShow: true
    };
  },
  props: {},
  computed: {},
  components: {},
  methods: {},
  mixins: [],
  watch: {},
  filters: {},
  directives: {}
}
</script>

<style scoped>
h1 {
  background-color: orange;
}
</style>